#!/usr/bin/python
import sys
import os
from backend import folder_analyize, execute

if len(sys.argv) > 1:
	location = sys.argv[-1]
else:
    location = raw_input("What is the location of your Quraan files: ")    

while(not os.path.exists(location)):
    print 'Please Enter a valid path'
    location = raw_input("What is the location of your Quraan files, again: ")

execute(folder_analyize(location))
print 'Files organized succefully'
